﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">

	<Style x:Key="MainGridSplitterStyle" TargetType="controls:GridSplitter">
		<Setter Property="Background" Value="#FFFFFFFF"/>
		<Setter Property="IsTabStop" Value="true"/>
		<Setter Property="HorizontalAlignment" Value="Right"/>
		<Setter Property="PreviewStyle">
			<Setter.Value>
				<Style TargetType="Control">
					<Setter Property="Background" Value="#FF868686"/>
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="Control">
								<Grid x:Name="Root" Opacity=".5">
									<Rectangle Fill="{TemplateBinding Background}"/>
									<Grid x:Name="HorizontalTemplate" Height="6"/>
									<Grid x:Name="VerticalTemplate" Width="6" Visibility="Collapsed"/>
								</Grid>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="controls:GridSplitter">
					<Grid x:Name="Root" IsHitTestVisible="{TemplateBinding IsEnabled}">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver"/>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0.5"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Unfocused"/>
								<VisualState x:Name="Focused">
									<Storyboard>
										<DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity" To="1"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Rectangle Fill="{TemplateBinding Background}" StrokeThickness="0"/>
						<Grid x:Name="HorizontalTemplate" Height="6">
							<StackPanel Height="6" VerticalAlignment="Center">
								<Rectangle Fill="Black" StrokeThickness="0" Height="1" Margin="1" Width="10"/>
								<Rectangle Fill="Black" StrokeThickness="0" Height="1" Margin="1" Width="10"/>
							</StackPanel>
						</Grid>
						<Grid x:Name="VerticalTemplate" Width="6" Visibility="Collapsed">
							<StackPanel VerticalAlignment="Center" Width="6" Orientation="Horizontal">
								<Rectangle Fill="Black" StrokeThickness="0" Height="10" Margin="1" Width="1"/>
								<Rectangle Fill="Black" StrokeThickness="0" Height="10" Margin="1" Width="1"/>
							</StackPanel>
						</Grid>
						<Rectangle x:Name="FocusVisual" Stroke="#FF6DBDD1" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>
